﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TImSdk;

namespace Domain.TimEntity
{
    /// <summary>
    /// 会话信息
    /// </summary>
    public class ConvInfo
    {
        /// <summary>
        /// 只读, 会话ID
        /// </summary>
        [JsonProperty("conv_id")]
        public string ConvId { get;set;}
        /// <summary>
        /// 只读, 会话类型
        /// </summary>
        [JsonProperty("conv_type")]
        public TIMConvType ConvType { get; set; }
        /// <summary>
        /// 只读, 会话所有者
        /// </summary>
        [JsonProperty("conv_owner")]
        public string ConvOwner { get; set; }
        /// <summary>
        ///  只读, 会话未读计数
        /// </summary>
        [JsonProperty("conv_unread_num")]
        public string ConvUnreadNum { get; set; }
        /// <summary>
        /// 只读, 会话的激活时间
        /// </summary>
        [JsonProperty("conv_active_time")]
        public string ConvActiveTime { get; set; }
        /// <summary>
        /// 只读, 会话是否有最后一条消息
        /// </summary>
        [JsonProperty("conv_is_has_lastmsg")]
        public bool ConvIsHasLastMsg { get; set; }
        /// <summary>
        /// 只读, 会话是否有最后一条消息
        /// </summary>
        [JsonProperty("conv_last_msg")]
        public Message ConvLastMsg { get; set; }
        /// <summary>
        /// 只读, 会话草稿
        /// </summary>
        [JsonProperty("conv_is_has_draft")]
        public bool ConvIsHasDraft { get; set; }
        /// <summary>
        /// 只读(选填), 会话草稿
        /// </summary>
        [JsonProperty("conv_draft")]
        public string ConvDraft { get; set; }
    }
}
